/*
 * @Descripttion:
 * @version: 电子名片2.0
 * @Author: 冯健
 * @Date: 2020-11-24 11:33:53
 * @LastEditors: 冯健
 * @LastEditTime: 2020-12-11 10:18:51
 */
export const listHedar = [
  { label: '焦点话题编号', prop: 'focusTopicId' },
  { label: '话题标题', prop: 'topicTitle' },
  { label: '焦点专题图片', prop: 'focusTopicImage', isTemplate: true },
  { label: '阅读量', prop: 'readingQuantity' },
  { label: '讨论量', prop: 'discussQuantity' },
  { label: '排序权重', prop: 'focusTopicOrder' },
  { label: '状态', prop: 'focusTopicStatus', isTemplate: true },
  { label: '修改人', prop: 'modifierName' },
  { label: '修改时间', prop: 'gmtModified' },
  { label: '操作', prop: 'operate', isTemplate: true, fixed: 'right' }
]

export const listHedar2 = [
  { label: '单选', prop: 'topicId', isTemplate: true },
  { label: '话题编号', prop: 'topicId' },
  { label: '话题标题', prop: 'topicTitle' },
  { label: '阅读量', prop: 'readingQuantity' },
  { label: '讨论量', prop: 'discussQuantity' }
]

const stutas = [
  { value: '0', title: '未上架' },
  { value: '1', title: '已上架' },
  { value: '2', title: '已下架' }
]
export const searchs = [
  { type: 'input', key: 'keyword', value: '', placeholder: '焦点话题编号、话题标题' },
  { type: 'select', key: 'focusTopicStatus', value: '', selectList: stutas, placeholder: '状态' }
]
export const searchs2 = [
  { type: 'input', key: 'keyword', value: '', placeholder: '话题编号、话题标题' }
]

export const editList = [
  { type: 'input', key: 'topicTitle', label: ' 话题标题', placeholder: '请输入', disabled: true },
  { type: 'input', key: 'takeaway', label: ' 话题导读', placeholder: '请输入', disabled: true },
  { type: 'upload', key: 'focusTopicImage', label: '焦点专题图片' },
  { type: 'input', key: 'focusTopicOrder', label: '排序权重' }
]

export const rules = {
  focusTopicImage: { required: true, message: '请上传焦点专题图片' }
}
